|
Spawn in computing refers to a function that loads and executes a new child process. The current process may wait for the child to terminate or may continue to execute asynchronously. Creating a new subprocess requires enough memory in which both the child process and the current program can execute. There is a family of spawn functions in DOS, inherited by Microsoft Windows. There is also a different family of spawn functions in an optional extension of the POSIX standards .〔(Posix.1-2008 spawn.h )〕 ==DOS/Windows spawn functions== The DOS/Windows spawn functions are inspired by Unix functions fork and exec; however, as these operating systems do not support fork,〔for Windows NT at least in the Win32 API; POSIX emulation environments such as Cygwin, or SFU do〕 the spawn function was supplied as a replacement for the fork-exec combination. However, the spawn function, although it deals adequately with the most common use cases, lacks the full power of fork-exec, since after fork any process settings which will survive an exec may be changed. However, in most cases, this deficiency can be made up for by using the more low-level CreateProcess API. In the ''spawnl'', ''spawnlp'', ''spawnv'', and ''spawnvp'' calls, the child process inherits the environment of the parent. Files that are open when a ''spawn'' call is made remain open in the child process. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Spawn (computing)」の詳細全文を読む スポンサード リンク
|